<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h1 id="hh">11111111111111</h1>
  <a href="./second.html">222222222222</a><br>
  <input type="button" value="跳2" id="btn">
<script>
  var btn = document.getElementById("btn");
  // histor对浏览记录历史按时间顺序保存
  btn.onclick = function () {
    // 前进
    // history.forward();
    history.go(1);//向前走一个页面
  }

</script>
</body>
</html>